package org.cjlm.ui.pub;

import javax.swing.*;
import java.awt.*;

public class MLabel extends JLabel {
    public MLabel(String text) {
        super(text);
        initUI();
    }

    public MLabel() {
        super();
        initUI();
    }

    private void initUI() {
        Dimension size = new Dimension(80, 25);
        setPreferredSize(size);
        setMinimumSize(size);
        setMaximumSize(size); // 关键：锁定最大尺寸
    }
}
